package com.ihr360.job.endpoint;

import java.io.Serializable;

public class PoolStatus implements Serializable{
    int corePoolSize;
    int maxPoolSize;
    int poolSize;
    int activeCount;
    int keepAliveSeconds;

    public PoolStatus(int corePoolSize, int maxPoolSize, int poolSize, int activeCount, int keepAliveSeconds) {
        this.corePoolSize = corePoolSize;
        this.maxPoolSize = maxPoolSize;
        this.poolSize = poolSize;
        this.activeCount = activeCount;
        this.keepAliveSeconds = keepAliveSeconds;
    }

    public int getCorePoolSize() {
        return corePoolSize;
    }

    public int getMaxPoolSize() {
        return maxPoolSize;
    }

    public int getPoolSize() {
        return poolSize;
    }

    public int getActiveCount() {
        return activeCount;
    }

    public int getKeepAliveSeconds() {
        return keepAliveSeconds;
    }

    @Override
    public String toString() {
        return "PoolStatus{" +
                "corePoolSize=" + corePoolSize +
                ", maxPoolSize=" + maxPoolSize +
                ", poolSize=" + poolSize +
                ", activeCount=" + activeCount +
                ", keepAliveSeconds=" + keepAliveSeconds +
                '}';
    }
}